Repository navigation
chore: check the docs on every pull request - #186
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #185 (not closed here: merges into
stagingclose nothing).Summary
A new workflow,
.github/workflows/docs-check.yml, runs on every pull request intostagingandmaster:scripts/check-summary.mjs): every pageSUMMARY.mdlinks to exists, and every page underv3.0is listed. Blocking.lychee.toml): links between the pages and the#headinganchors they point to; links to other sites are skipped. Blocking..markdownlint-cli2.jsonc): all default rules except line length, and duplicate headings only among siblings. Blocking..vale.ini,.vale/): our own rules for names, history narration and filler words, plus spelling with a vocabulary of the framework's names. Warnings only, and only on the lines a pull request adds.To start green:
SUMMARY.mdlists "What is Quantum?" and "Why Quantum?" in a new "About Quantum" section. The website already showed them there through its own fallback; its sidebar is unchanged (same sections, each page once).README.mdandSUMMARY.mdget the Markdown fixes: blank lines, list markers, trailing:in four headings, alt text for the README badges,##instead of###under the title ofinstallation.md, and two bold lines inrouting.mdturned into headings.AGENTS.mddescribes how to run the checks locally and when to usedocs:orchore:in a commit message.Changed paths
.github/workflows/docs-check.yml,scripts/check-summary.mjslychee.toml,.markdownlint-cli2.jsonc,.vale.ini,.vale/AGENTS.mdSUMMARY.md(new "About Quantum" section, blank lines),README.md, 60 pages underv3.0Testing
All four checks ran locally on the branch: no findings for the SUMMARY.md check, lychee and markdownlint. Each check was also run on a copy with a planted problem (a missing page, a wrong anchor, a misspelled name) and reported it. Vale reports 30 warnings on existing lines (filler words and history wording), which the pull request check does not show because it only looks at added lines.